package com.ambimmort.shj.action.logmanage;

import com.ambimmort.shj.service.logmanageService.LogmanageService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by ma on 2015/7/30.
 */
@Controller("/action/log/query_policy_send_log.do")
public class QueryPolicySendLog {

    private LogmanageService logmanageService;

    @RequestMapping("/action/log/query_policy_send_log.do")
    @ResponseBody
    public String action_queryPolicySend(HttpServletRequest request, @RequestParam("id") String id, @RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime
            , @RequestParam("MessageType") String MessageType, @RequestParam("MessageNo") String MessageNo, @RequestParam("sendType") String sendType, @RequestParam("iDisplayStart") String iDisplayStart
            , @RequestParam("iDisplayLength") String iDisplayLength) {

           return logmanageService.queryPolicySendLog(id,startTime,endTime,MessageType,MessageNo,sendType,iDisplayStart,iDisplayLength);
    }
}
